Optimal. Leaf size=122 \[ \frac {2 a (7 A+15 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.081, Rules used = {4172, 4098,
3889} \begin {gather*} \frac {2 a (7 A+15 C) \sin (c+d x) \sqrt {\sec (c+d x)}}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {2 A \sin (c+d x) \sqrt {a \sec (c+d x)+a}}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 A \sin (c+d x) \sqrt {a \sec (c+d x)+a}}{15 d \sqrt {\sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3889
Rule 4098
Rule 4172
Rubi steps
\begin {align*} \int \frac {\sqrt {a+a \sec (c+d x)} \left (A+C \sec ^2(c+d x)\right )}{\sec ^{\frac {5}{2}}(c+d x)} \, dx &=\frac {2 A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 \int \frac {\sqrt {a+a \sec (c+d x)} \left (\frac {a A}{2}+\frac {1}{2} a (2 A+5 C) \sec (c+d x)\right )}{\sec ^{\frac {3}{2}}(c+d x)} \, dx}{5 a}\\ &=\frac {2 A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}+\frac {1}{15} (7 A+15 C) \int \frac {\sqrt {a+a \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {2 a (7 A+15 C) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 A \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{15 d \sqrt {\sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.53, size = 68, normalized size = 0.56 \begin {gather*} \frac {(19 A+30 C+8 A \cos (c+d x)+3 A \cos (2 (c+d x))) \sqrt {a (1+\sec (c+d x))} \tan \left (\frac {1}{2} (c+d x)\right )}{15 d \sqrt {\sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 21.18, size = 87, normalized size = 0.71
method | result | size |
default | \(-\frac {2 \left (-1+\cos \left (d x +c \right )\right ) \left (3 A \left (\cos ^{2}\left (d x +c \right )\right )+4 A \cos \left (d x +c \right )+8 A +15 C \right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (\cos ^{3}\left (d x +c \right )\right ) \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {5}{2}}}{15 d \sin \left (d x +c \right )}\) | \(87\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 224 vs.
\(2 (104) = 208\).
time = 0.59, size = 224, normalized size = 1.84 \begin {gather*} \frac {\sqrt {2} {\left (30 \, \cos \left (\frac {4}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 5 \, \cos \left (\frac {2}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) - 30 \, \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) \sin \left (\frac {4}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) - 5 \, \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) \sin \left (\frac {2}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) + 6 \, \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 5 \, \sin \left (\frac {3}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right ) + 30 \, \sin \left (\frac {1}{5} \, \arctan \left (\sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ), \cos \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )\right )\right )\right )} A \sqrt {a} + 120 \, \sqrt {2} C \sqrt {a} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{60 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.13, size = 86, normalized size = 0.70 \begin {gather*} \frac {2 \, {\left (3 \, A \cos \left (d x + c\right )^{3} + 4 \, A \cos \left (d x + c\right )^{2} + {\left (8 \, A + 15 \, C\right )} \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{15 \, {\left (d \cos \left (d x + c\right ) + d\right )} \sqrt {\cos \left (d x + c\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a \left (\sec {\left (c + d x \right )} + 1\right )} \left (A + C \sec ^{2}{\left (c + d x \right )}\right )}{\sec ^{\frac {5}{2}}{\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.86, size = 94, normalized size = 0.77 \begin {gather*} \frac {\cos \left (c+d\,x\right )\,\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}\,\sqrt {\frac {a\,\left (\cos \left (c+d\,x\right )+1\right )}{\cos \left (c+d\,x\right )}}\,\left (35\,A\,\sin \left (c+d\,x\right )+60\,C\,\sin \left (c+d\,x\right )+8\,A\,\sin \left (2\,c+2\,d\,x\right )+3\,A\,\sin \left (3\,c+3\,d\,x\right )\right )}{30\,d\,\left (\cos \left (c+d\,x\right )+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________